home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / GZIP107S.ZIP;1 / GZIP107.TAR / gzip-1.0.7 / vms / makegzip.com < prev   
Encoding:
Text File  |  1993-03-04  |  2.3 KB  |  70 lines

  1. $! Makefile for VMS
  2. $! DCL-Shell-language. Edit the symbols section at the end.
  3. $!
  4. $ On Control_Y Then Goto The_Exit
  5. $ On Error Then Goto The_Exit
  6. $ define/user sys sys$library
  7. $ cc gzip.c /define=(VAXC)
  8. $ define/user sys sys$library
  9. $ cc zip.c /define=(VAXC)
  10. $ define/user sys sys$library
  11. $ cc deflate.c /define=(VAXC)
  12. $ define/user sys sys$library
  13. $ cc trees.c /define=(VAXC)
  14. $ define/user sys sys$library
  15. $ cc bits.c /define=(VAXC)
  16. $ define/user sys sys$library
  17. $ cc unzip.c /define=(VAXC)
  18. $ define/user sys sys$library
  19. $ cc inflate.c /define=(VAXC)
  20. $ define/user sys sys$library
  21. $ cc util.c /define=(VAXC)
  22. $ define/user sys sys$library
  23. $ cc crypt.c /define=(VAXC)
  24. $ define/user sys sys$library
  25. $ cc lzw.c /define=(VAXC)
  26. $ define/user sys sys$library
  27. $ cc unlzw.c /define=(VAXC)
  28. $ define/user sys sys$library
  29. $ cc unpack.c /define=(VAXC)
  30. $ define/user sys sys$library
  31. $ cc getopt.c /define=(VAXC)
  32. $ define/user sys sys$library
  33. $ cc alloca.c /define=(VAXC)
  34. $ linkobjs:=gzip.obj zip.obj deflate.obj trees.obj bits.obj unzip.obj -
  35.    inflate.obj util.obj crypt.obj lzw.obj unlzw.obj unpack.obj getopt.obj -
  36.    alloca.obj
  37. $ Schleife:
  38. $ p = f$locate(" ",linkobjs)
  39. $ if p .lt. f$length(linkobjs)
  40. $ then    linkobjs[p,1]:=","
  41. $ goto Schleife
  42. $ endif
  43. $ write sys$output "linking ''linkobjs'"
  44. $ link  /exec=gzip.exe  'linkobjs',sys$input/opt
  45. SYS$LIBRARY:VAXCRTL/SHARE 
  46. $
  47. $ ! Create a hard link.  (To remove both files, delete the copy FIRST, then
  48. $ ! the original.  Otherwise, if original deleted first [copy says "no such
  49. $ ! file"], must use "set file/remove gunzip.exe;#" to get rid of the copy.
  50. $ ! Unlike in Unix, deleting the original ALWAYS destroys the data--but not
  51. $ ! the directory entry of the copy.)  Using a hard link saves disk space, by
  52. $ ! the way.  Note, however, that copying a hard link copies the data, not
  53. $ ! just the link.  Therefore, set up the link in the directory in which the
  54. $ ! executable is to reside, or else rename (move) the executables into the
  55. $ ! directory.
  56. $ !
  57. $ set file/enter=gunzip.exe gzip.exe
  58. $ set file/enter=zcat.exe   gzip.exe
  59.  
  60. $ ! Set up symbols for the gzip executable.  Edit the example below,
  61. $ ! changing "disk:[directory]" as appropriate.
  62. $ !
  63. $ gzip   == "$disk:[directory]gzip.exe"
  64. $ gunzip == "$disk:[directory]gunzip.exe"
  65. $ zcat   == "$disk:[directory]zcat.exe"
  66. $
  67. $The_Exit:
  68. $ Save_Status = $STATUS
  69. $ exit Save_Status
  70.